<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    console.log(parseInt(19.11));    //19
    console.log(parseInt(19.99));    //19
    console.log(parseInt("25px"));   //25     解释：只转化数字的那部分
    console.log(parseInt("px25px")); //NaN    解释：parseInt只能将以数字开头的字符串转化为数字
    console.log(parseInt(110,2));    //6      解释：把二进制的110转化为十进制
    var a="15.15abc" , b='10.15' , c='10.0abc';
    console.log(parseInt(a)+Number(b)+parseFloat(c));   //15+10.15+10.0=35.15
</script>
</body>
</html>